<script setup lang="ts">
interface Props {
  title: string
}

const props = defineProps<Props>()
</script>

<template>
  <div class="f_card">
    <div class="title">
      {{ props.title }}
    </div>
    <div class="body">
      <slot></slot>
    </div>
  </div>
</template>

<style lang="less">
.f_card{
  background-color: var(--color-bg-1);
  border-radius: 5px;
  width: 100%;
  .title{
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: @f_border;
  }
  .body{
    padding: 20px;
  }
}
</style>